﻿@{
    Layout = null;
    LeEdu.MODEL.UserInfo user = ViewBag.user;
}


<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>乐知教育</title>
</head>
<body>
    
   <div>
       <div class="modal-header">

           <button class="close" aria-hidden="true" type="button" data-dismiss="modal">×</button>
           <h4 class="modal-title">
               编辑用户信息
           </h4>
       </div>
       <div class="modal-body">
           <form class="form-horizontal" id="user-edit-form" action="/Admin/EditUserRole" method="post" novalidate="novalidate" data-widget-cid="widget-0">
               <input type="hidden" value="@user.Uname" name="Uname" />
               <input type="hidden" name="Upwd" value="@user.Upwd" />
               <input type="hidden" name="IDCard" value="@user.IDCard" />
               <input type="hidden" name="PhoneNum" value="@user.PhoneNum" />
               <input type="hidden" name="Company" value="@user.Company" />
               <input type="hidden" name="Job" value="@user.Job" />
               <input type="hidden" name="Post" value="@user.Post" />
               <input type="hidden" name="Idiograph" value="@user.Idiograph" />
               <input type="hidden" name="Tisornot" value="@user.Tisornot" />
               <input type="hidden" name="Email" value="@user.Email" />
               <input type="hidden" name="Avatar" value="@user.Avatar" />
               <input type="hidden" name="UTime" value="@user.UTime" />
               <input type="hidden" name="Sex" value="@user.Sex" />
               <input type="hidden" name="Self" value="@user.Self" />
               <input type="hidden" name="UserInfoId" value="@user.UserInfoId" />
               <input type="hidden" name="PersonalHome" value="@user.PersonalHome" />
               <input type="hidden" name="Microblog" value="@user.Microblog" />
               <input type="hidden" name="QQ" value="@user.QQ" />
               <input type="hidden" name="WeChat" value="@user.WeChat" />
               <div>
                   @if (user.RoleId == 0)
                   {
                       <input type="radio" name="RoleId" value="1" /> <label>学员</label>
                       <input type="radio" name="RoleId" value="2"/><label>教师</label>
                       <input type="radio" name="RoleId" checked="checked" value="0" /><label>管理员</label>
                   }
                   else
                       if (user.RoleId == 1)
                       {
                           <input type="radio" name="RoleId" checked="checked" value="1" /> <label>学员</label>
                           <input type="radio" name="RoleId" value="2"/><label>教师</label>
                           <input type="radio" name="RoleId" value="0"/><label>管理员</label>
                       }
                       else
                           if (user.RoleId == 2)
                           {
                               <input type="radio" name="RoleId" value="1"/> <label>学员</label>
                               <input type="radio" name="RoleId" checked="checked" value="2" /><label>教师</label>
                               <input type="radio" name="RoleId" value="0"/><label>管理员</label>
                           }


                   <br />
                   <p>

                   </p>
                   <span></span>
               </div>
               <div class="row form-group">
                   <div class="modal-footer">
                       <button class="btn btn-primary pull-right" id="edit-user-btn" type="submit" data-toggle="form-submit" data-target="#user-edit-form" data-submiting-text="正在提交">保存</button>
                       <button class="btn btn-link pull-right" type="button" data-dismiss="modal">取消</button>
                   </div>
               </div>
              

           </form>

       </div>

   </div>

    
</body>
</html>
